#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct ListNode {
    char code[8];
    struct ListNode *next;
};

struct ListNode *createlist(); /*裁判实现，细节不表*/
int countcs(struct ListNode *head);

int main() {
    struct ListNode *head;

    head = createlist();
    printf("%d\n", countcs(head));

    return 0;
}

/* 你的代码将被嵌在这里 */
int countcs(struct ListNode *head) {
    int count = 0;
    struct ListNode *p=head;
    while (p!=NULL){
        if (p->code[1]=='0'&&p->code[2]=='2') {
            count++;
        }
        p = p->next;
    }
    return count;//记得return
}
